package com.example.myhuangye;

import android.content.Intent;
import android.os.Build;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;

public class Main0Activity extends AppCompatActivity {

    private WebView wv_gif;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main0);
        wv_gif=(WebView) findViewById(R.id.wv_gif);

        if(Build.VERSION.SDK_INT>= Build.VERSION_CODES.KITKAT)
        {

            wv_gif.loadUrl("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1509689663676&di=4763c96d48af43d27b16f0d34c7e4d4c&imgtype=0&src=http%3A%2F%2Fattimg.dospy.com%2Fimg%2Fday_100830%2F20100830_76e189fd18bd855f36706dk23P6O10e1.gif");
        }
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(Main0Activity.this,MainActivity.class));
                finish();
            }
        },3000);//欢迎页面定时进入主页面
    }

}

